
import { postRequest,getRequest } from '@/lib/axios';
import { LOGIN, LOGOUT } from '@/config/api-constant/system'

// 登录
export const loginApi = (param) => {
    return postRequest(LOGIN, param)
}

// 退出

export const logoutApi = () => {
    return postRequest(LOGOUT, {})
}

// 权限列表
export const adminPermission = (param = {}) => getRequest('/admin/permission/all', param);
